
spi-test1:     file format elf64-littleaarch64


Disassembly of section .init:

0000000000400778 <_init>:
  400778:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  40077c:	910003fd 	mov	x29, sp
  400780:	94000056 	bl	4008d8 <call_weak_fn>
  400784:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400788:	d65f03c0 	ret

Disassembly of section .plt:

0000000000400790 <.plt>:
  400790:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  400794:	d0000090 	adrp	x16, 412000 <__FRAME_END__+0xffd0>
  400798:	f947fe11 	ldr	x17, [x16, #4088]
  40079c:	913fe210 	add	x16, x16, #0xff8
  4007a0:	d61f0220 	br	x17
  4007a4:	d503201f 	nop
  4007a8:	d503201f 	nop
  4007ac:	d503201f 	nop

00000000004007b0 <exit@plt>:
  4007b0:	f0000090 	adrp	x16, 413000 <exit@GLIBC_2.17>
  4007b4:	f9400211 	ldr	x17, [x16]
  4007b8:	91000210 	add	x16, x16, #0x0
  4007bc:	d61f0220 	br	x17

00000000004007c0 <perror@plt>:
  4007c0:	f0000090 	adrp	x16, 413000 <exit@GLIBC_2.17>
  4007c4:	f9400611 	ldr	x17, [x16, #8]
  4007c8:	91002210 	add	x16, x16, #0x8
  4007cc:	d61f0220 	br	x17

00000000004007d0 <atoi@plt>:
  4007d0:	f0000090 	adrp	x16, 413000 <exit@GLIBC_2.17>
  4007d4:	f9400a11 	ldr	x17, [x16, #16]
  4007d8:	91004210 	add	x16, x16, #0x10
  4007dc:	d61f0220 	br	x17

00000000004007e0 <open@plt>:
  4007e0:	f0000090 	adrp	x16, 413000 <exit@GLIBC_2.17>
  4007e4:	f9400e11 	ldr	x17, [x16, #24]
  4007e8:	91006210 	add	x16, x16, #0x18
  4007ec:	d61f0220 	br	x17

00000000004007f0 <__libc_start_main@plt>:
  4007f0:	f0000090 	adrp	x16, 413000 <exit@GLIBC_2.17>
  4007f4:	f9401211 	ldr	x17, [x16, #32]
  4007f8:	91008210 	add	x16, x16, #0x20
  4007fc:	d61f0220 	br	x17

0000000000400800 <close@plt>:
  400800:	f0000090 	adrp	x16, 413000 <exit@GLIBC_2.17>
  400804:	f9401611 	ldr	x17, [x16, #40]
  400808:	9100a210 	add	x16, x16, #0x28
  40080c:	d61f0220 	br	x17

0000000000400810 <__gmon_start__@plt>:
  400810:	f0000090 	adrp	x16, 413000 <exit@GLIBC_2.17>
  400814:	f9401a11 	ldr	x17, [x16, #48]
  400818:	9100c210 	add	x16, x16, #0x30
  40081c:	d61f0220 	br	x17

0000000000400820 <abort@plt>:
  400820:	f0000090 	adrp	x16, 413000 <exit@GLIBC_2.17>
  400824:	f9401e11 	ldr	x17, [x16, #56]
  400828:	9100e210 	add	x16, x16, #0x38
  40082c:	d61f0220 	br	x17

0000000000400830 <puts@plt>:
  400830:	f0000090 	adrp	x16, 413000 <exit@GLIBC_2.17>
  400834:	f9402211 	ldr	x17, [x16, #64]
  400838:	91010210 	add	x16, x16, #0x40
  40083c:	d61f0220 	br	x17

0000000000400840 <getopt_long@plt>:
  400840:	f0000090 	adrp	x16, 413000 <exit@GLIBC_2.17>
  400844:	f9402611 	ldr	x17, [x16, #72]
  400848:	91012210 	add	x16, x16, #0x48
  40084c:	d61f0220 	br	x17

0000000000400850 <read@plt>:
  400850:	f0000090 	adrp	x16, 413000 <exit@GLIBC_2.17>
  400854:	f9402a11 	ldr	x17, [x16, #80]
  400858:	91014210 	add	x16, x16, #0x50
  40085c:	d61f0220 	br	x17

0000000000400860 <printf@plt>:
  400860:	f0000090 	adrp	x16, 413000 <exit@GLIBC_2.17>
  400864:	f9402e11 	ldr	x17, [x16, #88]
  400868:	91016210 	add	x16, x16, #0x58
  40086c:	d61f0220 	br	x17

0000000000400870 <putchar@plt>:
  400870:	f0000090 	adrp	x16, 413000 <exit@GLIBC_2.17>
  400874:	f9403211 	ldr	x17, [x16, #96]
  400878:	91018210 	add	x16, x16, #0x60
  40087c:	d61f0220 	br	x17

0000000000400880 <ioctl@plt>:
  400880:	f0000090 	adrp	x16, 413000 <exit@GLIBC_2.17>
  400884:	f9403611 	ldr	x17, [x16, #104]
  400888:	9101a210 	add	x16, x16, #0x68
  40088c:	d61f0220 	br	x17

Disassembly of section .text:

0000000000400890 <_start>:
  400890:	d280001d 	mov	x29, #0x0                   	// #0
  400894:	d280001e 	mov	x30, #0x0                   	// #0
  400898:	aa0003e5 	mov	x5, x0
  40089c:	f94003e1 	ldr	x1, [sp]
  4008a0:	910023e2 	add	x2, sp, #0x8
  4008a4:	910003e6 	mov	x6, sp
  4008a8:	580000c0 	ldr	x0, 4008c0 <_start+0x30>
  4008ac:	580000e3 	ldr	x3, 4008c8 <_start+0x38>
  4008b0:	58000104 	ldr	x4, 4008d0 <_start+0x40>
  4008b4:	97ffffcf 	bl	4007f0 <__libc_start_main@plt>
  4008b8:	97ffffda 	bl	400820 <abort@plt>
  4008bc:	00000000 	.inst	0x00000000 ; undefined
  4008c0:	00401910 	.word	0x00401910
  4008c4:	00000000 	.word	0x00000000
  4008c8:	00401958 	.word	0x00401958
  4008cc:	00000000 	.word	0x00000000
  4008d0:	004019d8 	.word	0x004019d8
  4008d4:	00000000 	.word	0x00000000

00000000004008d8 <call_weak_fn>:
  4008d8:	d0000080 	adrp	x0, 412000 <__FRAME_END__+0xffd0>
  4008dc:	f947f000 	ldr	x0, [x0, #4064]
  4008e0:	b4000040 	cbz	x0, 4008e8 <call_weak_fn+0x10>
  4008e4:	17ffffcb 	b	400810 <__gmon_start__@plt>
  4008e8:	d65f03c0 	ret
  4008ec:	00000000 	.inst	0x00000000 ; undefined

00000000004008f0 <deregister_tm_clones>:
  4008f0:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  4008f4:	91026000 	add	x0, x0, #0x98
  4008f8:	f0000081 	adrp	x1, 413000 <exit@GLIBC_2.17>
  4008fc:	91026021 	add	x1, x1, #0x98
  400900:	eb00003f 	cmp	x1, x0
  400904:	540000a0 	b.eq	400918 <deregister_tm_clones+0x28>  // b.none
  400908:	b0000001 	adrp	x1, 401000 <readfrom_spi_serial+0x16c>
  40090c:	f944fc21 	ldr	x1, [x1, #2552]
  400910:	b4000041 	cbz	x1, 400918 <deregister_tm_clones+0x28>
  400914:	d61f0020 	br	x1
  400918:	d65f03c0 	ret
  40091c:	d503201f 	nop

0000000000400920 <register_tm_clones>:
  400920:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400924:	91026000 	add	x0, x0, #0x98
  400928:	f0000081 	adrp	x1, 413000 <exit@GLIBC_2.17>
  40092c:	91026021 	add	x1, x1, #0x98
  400930:	cb000021 	sub	x1, x1, x0
  400934:	9343fc21 	asr	x1, x1, #3
  400938:	8b41fc21 	add	x1, x1, x1, lsr #63
  40093c:	9341fc21 	asr	x1, x1, #1
  400940:	b40000a1 	cbz	x1, 400954 <register_tm_clones+0x34>
  400944:	b0000002 	adrp	x2, 401000 <readfrom_spi_serial+0x16c>
  400948:	f9450042 	ldr	x2, [x2, #2560]
  40094c:	b4000042 	cbz	x2, 400954 <register_tm_clones+0x34>
  400950:	d61f0040 	br	x2
  400954:	d65f03c0 	ret

0000000000400958 <__do_global_dtors_aux>:
  400958:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  40095c:	910003fd 	mov	x29, sp
  400960:	f9000bf3 	str	x19, [sp, #16]
  400964:	f0000093 	adrp	x19, 413000 <exit@GLIBC_2.17>
  400968:	39428260 	ldrb	w0, [x19, #160]
  40096c:	35000080 	cbnz	w0, 40097c <__do_global_dtors_aux+0x24>
  400970:	97ffffe0 	bl	4008f0 <deregister_tm_clones>
  400974:	52800020 	mov	w0, #0x1                   	// #1
  400978:	39028260 	strb	w0, [x19, #160]
  40097c:	f9400bf3 	ldr	x19, [sp, #16]
  400980:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400984:	d65f03c0 	ret

0000000000400988 <frame_dummy>:
  400988:	17ffffe6 	b	400920 <register_tm_clones>

000000000040098c <pabort>:
  40098c:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400990:	910003fd 	mov	x29, sp
  400994:	f9000fa0 	str	x0, [x29, #24]
  400998:	f9400fa0 	ldr	x0, [x29, #24]
  40099c:	97ffff89 	bl	4007c0 <perror@plt>
  4009a0:	97ffffa0 	bl	400820 <abort@plt>

00000000004009a4 <transfer>:
  4009a4:	d10183ff 	sub	sp, sp, #0x60
  4009a8:	a9027bfd 	stp	x29, x30, [sp, #32]
  4009ac:	910083fd 	add	x29, sp, #0x20
  4009b0:	b9001fa0 	str	w0, [x29, #28]
  4009b4:	3900e3bf 	strb	wzr, [x29, #56]
  4009b8:	f90017bf 	str	xzr, [x29, #40]
  4009bc:	b90033bf 	str	wzr, [x29, #48]
  4009c0:	79006bbf 	strh	wzr, [x29, #52]
  4009c4:	3900dbbf 	strb	wzr, [x29, #54]
  4009c8:	52800240 	mov	w0, #0x12                  	// #18
  4009cc:	3900a3a0 	strb	w0, [x29, #40]
  4009d0:	9100a3a0 	add	x0, x29, #0x28
  4009d4:	d28000a2 	mov	x2, #0x5                   	// #5
  4009d8:	aa0003e1 	mov	x1, x0
  4009dc:	b9401fa0 	ldr	w0, [x29, #28]
  4009e0:	97ffff9c 	bl	400850 <read@plt>
  4009e4:	3940a3a0 	ldrb	w0, [x29, #40]
  4009e8:	2a0003e8 	mov	w8, w0
  4009ec:	3940b3a0 	ldrb	w0, [x29, #44]
  4009f0:	2a0003e9 	mov	w9, w0
  4009f4:	3940afa0 	ldrb	w0, [x29, #43]
  4009f8:	2a0003ea 	mov	w10, w0
  4009fc:	3940aba0 	ldrb	w0, [x29, #42]
  400a00:	2a0003eb 	mov	w11, w0
  400a04:	3940a7a0 	ldrb	w0, [x29, #41]
  400a08:	2a0003e5 	mov	w5, w0
  400a0c:	3940b7a0 	ldrb	w0, [x29, #45]
  400a10:	2a0003e6 	mov	w6, w0
  400a14:	3940bba0 	ldrb	w0, [x29, #46]
  400a18:	2a0003e7 	mov	w7, w0
  400a1c:	3940bfa0 	ldrb	w0, [x29, #47]
  400a20:	2a0003e1 	mov	w1, w0
  400a24:	3940c3a0 	ldrb	w0, [x29, #48]
  400a28:	2a0003e2 	mov	w2, w0
  400a2c:	3940c7a0 	ldrb	w0, [x29, #49]
  400a30:	2a0003e3 	mov	w3, w0
  400a34:	3940cba0 	ldrb	w0, [x29, #50]
  400a38:	2a0003e4 	mov	w4, w0
  400a3c:	b0000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  400a40:	91286000 	add	x0, x0, #0xa18
  400a44:	b9001be4 	str	w4, [sp, #24]
  400a48:	b90013e3 	str	w3, [sp, #16]
  400a4c:	b9000be2 	str	w2, [sp, #8]
  400a50:	b90003e1 	str	w1, [sp]
  400a54:	2a0b03e4 	mov	w4, w11
  400a58:	2a0a03e3 	mov	w3, w10
  400a5c:	2a0903e2 	mov	w2, w9
  400a60:	2a0803e1 	mov	w1, w8
  400a64:	97ffff7f 	bl	400860 <printf@plt>
  400a68:	d503201f 	nop
  400a6c:	a9427bfd 	ldp	x29, x30, [sp, #32]
  400a70:	910183ff 	add	sp, sp, #0x60
  400a74:	d65f03c0 	ret

0000000000400a78 <print_usage>:
  400a78:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  400a7c:	910003fd 	mov	x29, sp
  400a80:	f9000fa0 	str	x0, [x29, #24]
  400a84:	b0000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  400a88:	9129a000 	add	x0, x0, #0xa68
  400a8c:	f9400fa1 	ldr	x1, [x29, #24]
  400a90:	97ffff74 	bl	400860 <printf@plt>
  400a94:	b0000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  400a98:	912a2000 	add	x0, x0, #0xa88
  400a9c:	97ffff65 	bl	400830 <puts@plt>
  400aa0:	52800020 	mov	w0, #0x1                   	// #1
  400aa4:	97ffff43 	bl	4007b0 <exit@plt>

0000000000400aa8 <parse_opts>:
  400aa8:	a9bd7bfd 	stp	x29, x30, [sp, #-48]!
  400aac:	910003fd 	mov	x29, sp
  400ab0:	b9001fa0 	str	w0, [x29, #28]
  400ab4:	f9000ba1 	str	x1, [x29, #16]
  400ab8:	b0000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  400abc:	913a4001 	add	x1, x0, #0xe90
  400ac0:	b0000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  400ac4:	912fa000 	add	x0, x0, #0xbe8
  400ac8:	d2800004 	mov	x4, #0x0                   	// #0
  400acc:	aa0103e3 	mov	x3, x1
  400ad0:	aa0003e2 	mov	x2, x0
  400ad4:	f9400ba1 	ldr	x1, [x29, #16]
  400ad8:	b9401fa0 	ldr	w0, [x29, #28]
  400adc:	97ffff59 	bl	400840 <getopt_long@plt>
  400ae0:	b9002fa0 	str	w0, [x29, #44]
  400ae4:	b9402fa0 	ldr	w0, [x29, #44]
  400ae8:	3100041f 	cmn	w0, #0x1
  400aec:	54001260 	b.eq	400d38 <parse_opts+0x290>  // b.none
  400af0:	b9402fa0 	ldr	w0, [x29, #44]
  400af4:	7101381f 	cmp	w0, #0x4e
  400af8:	54000f20 	b.eq	400cdc <parse_opts+0x234>  // b.none
  400afc:	7101381f 	cmp	w0, #0x4e
  400b00:	540001ec 	b.gt	400b3c <parse_opts+0x94>
  400b04:	7101101f 	cmp	w0, #0x44
  400b08:	540003a0 	b.eq	400b7c <parse_opts+0xd4>  // b.none
  400b0c:	7101101f 	cmp	w0, #0x44
  400b10:	540000cc 	b.gt	400b28 <parse_opts+0x80>
  400b14:	7100cc1f 	cmp	w0, #0x33
  400b18:	54000d00 	b.eq	400cb8 <parse_opts+0x210>  // b.none
  400b1c:	71010c1f 	cmp	w0, #0x43
  400b20:	54000ba0 	b.eq	400c94 <parse_opts+0x1ec>  // b.none
  400b24:	14000080 	b	400d24 <parse_opts+0x27c>
  400b28:	7101201f 	cmp	w0, #0x48
  400b2c:	540007e0 	b.eq	400c28 <parse_opts+0x180>  // b.none
  400b30:	7101301f 	cmp	w0, #0x4c
  400b34:	540009e0 	b.eq	400c70 <parse_opts+0x1c8>  // b.none
  400b38:	1400007b 	b	400d24 <parse_opts+0x27c>
  400b3c:	7101881f 	cmp	w0, #0x62
  400b40:	54000500 	b.eq	400be0 <parse_opts+0x138>  // b.none
  400b44:	7101881f 	cmp	w0, #0x62
  400b48:	540000cc 	b.gt	400b60 <parse_opts+0xb8>
  400b4c:	71013c1f 	cmp	w0, #0x4f
  400b50:	540007e0 	b.eq	400c4c <parse_opts+0x1a4>  // b.none
  400b54:	7101481f 	cmp	w0, #0x52
  400b58:	54000d40 	b.eq	400d00 <parse_opts+0x258>  // b.none
  400b5c:	14000072 	b	400d24 <parse_opts+0x27c>
  400b60:	7101b01f 	cmp	w0, #0x6c
  400b64:	54000500 	b.eq	400c04 <parse_opts+0x15c>  // b.none
  400b68:	7101cc1f 	cmp	w0, #0x73
  400b6c:	54000160 	b.eq	400b98 <parse_opts+0xf0>  // b.none
  400b70:	7101901f 	cmp	w0, #0x64
  400b74:	54000240 	b.eq	400bbc <parse_opts+0x114>  // b.none
  400b78:	1400006b 	b	400d24 <parse_opts+0x27c>
  400b7c:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400b80:	91026000 	add	x0, x0, #0x98
  400b84:	f9400001 	ldr	x1, [x0]
  400b88:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400b8c:	91022000 	add	x0, x0, #0x88
  400b90:	f9000001 	str	x1, [x0]
  400b94:	14000068 	b	400d34 <parse_opts+0x28c>
  400b98:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400b9c:	91026000 	add	x0, x0, #0x98
  400ba0:	f9400000 	ldr	x0, [x0]
  400ba4:	97ffff0b 	bl	4007d0 <atoi@plt>
  400ba8:	2a0003e1 	mov	w1, w0
  400bac:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400bb0:	91025000 	add	x0, x0, #0x94
  400bb4:	b9000001 	str	w1, [x0]
  400bb8:	1400005f 	b	400d34 <parse_opts+0x28c>
  400bbc:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400bc0:	91026000 	add	x0, x0, #0x98
  400bc4:	f9400000 	ldr	x0, [x0]
  400bc8:	97ffff02 	bl	4007d0 <atoi@plt>
  400bcc:	12003c01 	and	w1, w0, #0xffff
  400bd0:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400bd4:	91029000 	add	x0, x0, #0xa4
  400bd8:	79000001 	strh	w1, [x0]
  400bdc:	14000056 	b	400d34 <parse_opts+0x28c>
  400be0:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400be4:	91026000 	add	x0, x0, #0x98
  400be8:	f9400000 	ldr	x0, [x0]
  400bec:	97fffef9 	bl	4007d0 <atoi@plt>
  400bf0:	12001c01 	and	w1, w0, #0xff
  400bf4:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400bf8:	91024000 	add	x0, x0, #0x90
  400bfc:	39000001 	strb	w1, [x0]
  400c00:	1400004d 	b	400d34 <parse_opts+0x28c>
  400c04:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400c08:	91028800 	add	x0, x0, #0xa2
  400c0c:	39400000 	ldrb	w0, [x0]
  400c10:	321b0000 	orr	w0, w0, #0x20
  400c14:	12001c01 	and	w1, w0, #0xff
  400c18:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400c1c:	91028800 	add	x0, x0, #0xa2
  400c20:	39000001 	strb	w1, [x0]
  400c24:	14000044 	b	400d34 <parse_opts+0x28c>
  400c28:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400c2c:	91028800 	add	x0, x0, #0xa2
  400c30:	39400000 	ldrb	w0, [x0]
  400c34:	32000000 	orr	w0, w0, #0x1
  400c38:	12001c01 	and	w1, w0, #0xff
  400c3c:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400c40:	91028800 	add	x0, x0, #0xa2
  400c44:	39000001 	strb	w1, [x0]
  400c48:	1400003b 	b	400d34 <parse_opts+0x28c>
  400c4c:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400c50:	91028800 	add	x0, x0, #0xa2
  400c54:	39400000 	ldrb	w0, [x0]
  400c58:	321f0000 	orr	w0, w0, #0x2
  400c5c:	12001c01 	and	w1, w0, #0xff
  400c60:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400c64:	91028800 	add	x0, x0, #0xa2
  400c68:	39000001 	strb	w1, [x0]
  400c6c:	14000032 	b	400d34 <parse_opts+0x28c>
  400c70:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400c74:	91028800 	add	x0, x0, #0xa2
  400c78:	39400000 	ldrb	w0, [x0]
  400c7c:	321d0000 	orr	w0, w0, #0x8
  400c80:	12001c01 	and	w1, w0, #0xff
  400c84:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400c88:	91028800 	add	x0, x0, #0xa2
  400c8c:	39000001 	strb	w1, [x0]
  400c90:	14000029 	b	400d34 <parse_opts+0x28c>
  400c94:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400c98:	91028800 	add	x0, x0, #0xa2
  400c9c:	39400000 	ldrb	w0, [x0]
  400ca0:	321e0000 	orr	w0, w0, #0x4
  400ca4:	12001c01 	and	w1, w0, #0xff
  400ca8:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400cac:	91028800 	add	x0, x0, #0xa2
  400cb0:	39000001 	strb	w1, [x0]
  400cb4:	14000020 	b	400d34 <parse_opts+0x28c>
  400cb8:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400cbc:	91028800 	add	x0, x0, #0xa2
  400cc0:	39400000 	ldrb	w0, [x0]
  400cc4:	321c0000 	orr	w0, w0, #0x10
  400cc8:	12001c01 	and	w1, w0, #0xff
  400ccc:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400cd0:	91028800 	add	x0, x0, #0xa2
  400cd4:	39000001 	strb	w1, [x0]
  400cd8:	14000017 	b	400d34 <parse_opts+0x28c>
  400cdc:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400ce0:	91028800 	add	x0, x0, #0xa2
  400ce4:	39400000 	ldrb	w0, [x0]
  400ce8:	321a0000 	orr	w0, w0, #0x40
  400cec:	12001c01 	and	w1, w0, #0xff
  400cf0:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400cf4:	91028800 	add	x0, x0, #0xa2
  400cf8:	39000001 	strb	w1, [x0]
  400cfc:	1400000e 	b	400d34 <parse_opts+0x28c>
  400d00:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400d04:	91028800 	add	x0, x0, #0xa2
  400d08:	39400000 	ldrb	w0, [x0]
  400d0c:	32196000 	orr	w0, w0, #0xffffff80
  400d10:	12001c01 	and	w1, w0, #0xff
  400d14:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400d18:	91028800 	add	x0, x0, #0xa2
  400d1c:	39000001 	strb	w1, [x0]
  400d20:	14000005 	b	400d34 <parse_opts+0x28c>
  400d24:	f9400ba0 	ldr	x0, [x29, #16]
  400d28:	f9400000 	ldr	x0, [x0]
  400d2c:	97ffff53 	bl	400a78 <print_usage>
  400d30:	d503201f 	nop
  400d34:	17ffff61 	b	400ab8 <parse_opts+0x10>
  400d38:	d503201f 	nop
  400d3c:	d503201f 	nop
  400d40:	a8c37bfd 	ldp	x29, x30, [sp], #48
  400d44:	d65f03c0 	ret

0000000000400d48 <dwt_readfromdevice>:
  400d48:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  400d4c:	910003fd 	mov	x29, sp
  400d50:	3900bfa0 	strb	w0, [x29, #47]
  400d54:	3900bba1 	strb	w1, [x29, #46]
  400d58:	f90013a2 	str	x2, [x29, #32]
  400d5c:	f9000fa3 	str	x3, [x29, #24]
  400d60:	790073bf 	strh	wzr, [x29, #56]
  400d64:	3900ebbf 	strb	wzr, [x29, #58]
  400d68:	79007fbf 	strh	wzr, [x29, #62]
  400d6c:	3940bfa1 	ldrb	w1, [x29, #47]
  400d70:	b0000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  400d74:	91300000 	add	x0, x0, #0xc00
  400d78:	97fffeba 	bl	400860 <printf@plt>
  400d7c:	3940bba0 	ldrb	w0, [x29, #46]
  400d80:	7100001f 	cmp	w0, #0x0
  400d84:	54000121 	b.ne	400da8 <dwt_readfromdevice+0x60>  // b.any
  400d88:	79407fa0 	ldrh	w0, [x29, #62]
  400d8c:	11000401 	add	w1, w0, #0x1
  400d90:	79007fa1 	strh	w1, [x29, #62]
  400d94:	93407c00 	sxtw	x0, w0
  400d98:	9100e3a1 	add	x1, x29, #0x38
  400d9c:	3940bfa2 	ldrb	w2, [x29, #47]
  400da0:	38206822 	strb	w2, [x1, x0]
  400da4:	1400002a 	b	400e4c <dwt_readfromdevice+0x104>
  400da8:	79407fa0 	ldrh	w0, [x29, #62]
  400dac:	11000401 	add	w1, w0, #0x1
  400db0:	79007fa1 	strh	w1, [x29, #62]
  400db4:	2a0003e1 	mov	w1, w0
  400db8:	3940bfa0 	ldrb	w0, [x29, #47]
  400dbc:	321a0000 	orr	w0, w0, #0x40
  400dc0:	12001c02 	and	w2, w0, #0xff
  400dc4:	93407c20 	sxtw	x0, w1
  400dc8:	9100e3a1 	add	x1, x29, #0x38
  400dcc:	38206822 	strb	w2, [x1, x0]
  400dd0:	39c0bba0 	ldrsb	w0, [x29, #46]
  400dd4:	7100001f 	cmp	w0, #0x0
  400dd8:	5400012b 	b.lt	400dfc <dwt_readfromdevice+0xb4>  // b.tstop
  400ddc:	79407fa0 	ldrh	w0, [x29, #62]
  400de0:	11000401 	add	w1, w0, #0x1
  400de4:	79007fa1 	strh	w1, [x29, #62]
  400de8:	93407c00 	sxtw	x0, w0
  400dec:	9100e3a1 	add	x1, x29, #0x38
  400df0:	3940bba2 	ldrb	w2, [x29, #46]
  400df4:	38206822 	strb	w2, [x1, x0]
  400df8:	14000015 	b	400e4c <dwt_readfromdevice+0x104>
  400dfc:	79407fa0 	ldrh	w0, [x29, #62]
  400e00:	11000401 	add	w1, w0, #0x1
  400e04:	79007fa1 	strh	w1, [x29, #62]
  400e08:	2a0003e1 	mov	w1, w0
  400e0c:	3940bba0 	ldrb	w0, [x29, #46]
  400e10:	32196000 	orr	w0, w0, #0xffffff80
  400e14:	12001c02 	and	w2, w0, #0xff
  400e18:	93407c20 	sxtw	x0, w1
  400e1c:	9100e3a1 	add	x1, x29, #0x38
  400e20:	38206822 	strb	w2, [x1, x0]
  400e24:	79407fa0 	ldrh	w0, [x29, #62]
  400e28:	11000401 	add	w1, w0, #0x1
  400e2c:	79007fa1 	strh	w1, [x29, #62]
  400e30:	2a0003e1 	mov	w1, w0
  400e34:	3940bba0 	ldrb	w0, [x29, #46]
  400e38:	53077c00 	lsr	w0, w0, #7
  400e3c:	12001c02 	and	w2, w0, #0xff
  400e40:	93407c20 	sxtw	x0, w1
  400e44:	9100e3a1 	add	x1, x29, #0x38
  400e48:	38206822 	strb	w2, [x1, x0]
  400e4c:	79407fa1 	ldrh	w1, [x29, #62]
  400e50:	3940e3a0 	ldrb	w0, [x29, #56]
  400e54:	2a0003e2 	mov	w2, w0
  400e58:	3940e7a0 	ldrb	w0, [x29, #57]
  400e5c:	2a0003e3 	mov	w3, w0
  400e60:	3940eba0 	ldrb	w0, [x29, #58]
  400e64:	2a0003e4 	mov	w4, w0
  400e68:	b0000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  400e6c:	9130a000 	add	x0, x0, #0xc28
  400e70:	97fffe7c 	bl	400860 <printf@plt>
  400e74:	79407fa0 	ldrh	w0, [x29, #62]
  400e78:	12001c00 	and	w0, w0, #0xff
  400e7c:	9100e3a1 	add	x1, x29, #0x38
  400e80:	f9400fa3 	ldr	x3, [x29, #24]
  400e84:	f94013a2 	ldr	x2, [x29, #32]
  400e88:	94000003 	bl	400e94 <readfrom_spi_serial>
  400e8c:	a8c47bfd 	ldp	x29, x30, [sp], #64
  400e90:	d65f03c0 	ret

0000000000400e94 <readfrom_spi_serial>:
  400e94:	a9b87bfd 	stp	x29, x30, [sp, #-128]!
  400e98:	910003fd 	mov	x29, sp
  400e9c:	3900bfa0 	strb	w0, [x29, #47]
  400ea0:	f90013a1 	str	x1, [x29, #32]
  400ea4:	f9000fa2 	str	x2, [x29, #24]
  400ea8:	f9000ba3 	str	x3, [x29, #16]
  400eac:	a9057fbf 	stp	xzr, xzr, [x29, #80]
  400eb0:	b90077bf 	str	wzr, [x29, #116]
  400eb4:	b9007fbf 	str	wzr, [x29, #124]
  400eb8:	b9007bbf 	str	wzr, [x29, #120]
  400ebc:	910183a0 	add	x0, x29, #0x60
  400ec0:	2a0003e0 	mov	w0, w0
  400ec4:	f9001ba0 	str	x0, [x29, #48]
  400ec8:	910143a0 	add	x0, x29, #0x50
  400ecc:	2a0003e0 	mov	w0, w0
  400ed0:	f9001fa0 	str	x0, [x29, #56]
  400ed4:	3940bfa0 	ldrb	w0, [x29, #47]
  400ed8:	f9400fa1 	ldr	x1, [x29, #24]
  400edc:	0b010000 	add	w0, w0, w1
  400ee0:	b90043a0 	str	w0, [x29, #64]
  400ee4:	52942400 	mov	w0, #0xa120                	// #41248
  400ee8:	72a000e0 	movk	w0, #0x7, lsl #16
  400eec:	b90047a0 	str	w0, [x29, #68]
  400ef0:	52800100 	mov	w0, #0x8                   	// #8
  400ef4:	39012ba0 	strb	w0, [x29, #74]
  400ef8:	52800c80 	mov	w0, #0x64                  	// #100
  400efc:	790093a0 	strh	w0, [x29, #72]
  400f00:	b9007bbf 	str	wzr, [x29, #120]
  400f04:	1400000b 	b	400f30 <readfrom_spi_serial+0x9c>
  400f08:	b9807ba0 	ldrsw	x0, [x29, #120]
  400f0c:	f94013a1 	ldr	x1, [x29, #32]
  400f10:	8b000020 	add	x0, x1, x0
  400f14:	39400002 	ldrb	w2, [x0]
  400f18:	b9807ba0 	ldrsw	x0, [x29, #120]
  400f1c:	910183a1 	add	x1, x29, #0x60
  400f20:	38206822 	strb	w2, [x1, x0]
  400f24:	b9407ba0 	ldr	w0, [x29, #120]
  400f28:	11000400 	add	w0, w0, #0x1
  400f2c:	b9007ba0 	str	w0, [x29, #120]
  400f30:	3940bfa0 	ldrb	w0, [x29, #47]
  400f34:	b9407ba1 	ldr	w1, [x29, #120]
  400f38:	6b00003f 	cmp	w1, w0
  400f3c:	54fffe6b 	b.lt	400f08 <readfrom_spi_serial+0x74>  // b.tstop
  400f40:	b9007fbf 	str	wzr, [x29, #124]
  400f44:	14000013 	b	400f90 <readfrom_spi_serial+0xfc>
  400f48:	b9807fa0 	ldrsw	x0, [x29, #124]
  400f4c:	910183a1 	add	x1, x29, #0x60
  400f50:	38606820 	ldrb	w0, [x1, x0]
  400f54:	2a0003e1 	mov	w1, w0
  400f58:	b0000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  400f5c:	91312000 	add	x0, x0, #0xc48
  400f60:	97fffe40 	bl	400860 <printf@plt>
  400f64:	b9807fa0 	ldrsw	x0, [x29, #124]
  400f68:	f94013a1 	ldr	x1, [x29, #32]
  400f6c:	8b000020 	add	x0, x1, x0
  400f70:	39400000 	ldrb	w0, [x0]
  400f74:	2a0003e1 	mov	w1, w0
  400f78:	b0000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  400f7c:	91316000 	add	x0, x0, #0xc58
  400f80:	97fffe38 	bl	400860 <printf@plt>
  400f84:	b9407fa0 	ldr	w0, [x29, #124]
  400f88:	11000400 	add	w0, w0, #0x1
  400f8c:	b9007fa0 	str	w0, [x29, #124]
  400f90:	3940bfa0 	ldrb	w0, [x29, #47]
  400f94:	b9407fa1 	ldr	w1, [x29, #124]
  400f98:	6b00003f 	cmp	w1, w0
  400f9c:	54fffd6b 	b.lt	400f48 <readfrom_spi_serial+0xb4>  // b.tstop
  400fa0:	f0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  400fa4:	91020000 	add	x0, x0, #0x80
  400fa8:	b9400000 	ldr	w0, [x0]
  400fac:	9100c3a1 	add	x1, x29, #0x30
  400fb0:	aa0103e2 	mov	x2, x1
  400fb4:	d28d6001 	mov	x1, #0x6b00                	// #27392
  400fb8:	f2a80401 	movk	x1, #0x4020, lsl #16
  400fbc:	97fffe31 	bl	400880 <ioctl@plt>
  400fc0:	b90077a0 	str	w0, [x29, #116]
  400fc4:	b94077a0 	ldr	w0, [x29, #116]
  400fc8:	7100001f 	cmp	w0, #0x0
  400fcc:	5400008c 	b.gt	400fdc <readfrom_spi_serial+0x148>
  400fd0:	b0000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  400fd4:	9131c000 	add	x0, x0, #0xc70
  400fd8:	97fffe6d 	bl	40098c <pabort>
  400fdc:	b0000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  400fe0:	91322000 	add	x0, x0, #0xc88
  400fe4:	97fffe1f 	bl	400860 <printf@plt>
  400fe8:	b9007fbf 	str	wzr, [x29, #124]
  400fec:	1400000b 	b	401018 <readfrom_spi_serial+0x184>
  400ff0:	b9807fa0 	ldrsw	x0, [x29, #124]
  400ff4:	910143a1 	add	x1, x29, #0x50
  400ff8:	38606820 	ldrb	w0, [x1, x0]
  400ffc:	2a0003e1 	mov	w1, w0
  401000:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  401004:	91326000 	add	x0, x0, #0xc98
  401008:	97fffe16 	bl	400860 <printf@plt>
  40100c:	b9407fa0 	ldr	w0, [x29, #124]
  401010:	11000400 	add	w0, w0, #0x1
  401014:	b9007fa0 	str	w0, [x29, #124]
  401018:	b9407fa0 	ldr	w0, [x29, #124]
  40101c:	71003c1f 	cmp	w0, #0xf
  401020:	54fffe8d 	b.le	400ff0 <readfrom_spi_serial+0x15c>
  401024:	52800140 	mov	w0, #0xa                   	// #10
  401028:	97fffe12 	bl	400870 <putchar@plt>
  40102c:	3940bfa0 	ldrb	w0, [x29, #47]
  401030:	b9007fa0 	str	w0, [x29, #124]
  401034:	14000015 	b	401088 <readfrom_spi_serial+0x1f4>
  401038:	b9807fa0 	ldrsw	x0, [x29, #124]
  40103c:	910143a1 	add	x1, x29, #0x50
  401040:	38606820 	ldrb	w0, [x1, x0]
  401044:	2a0003e1 	mov	w1, w0
  401048:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  40104c:	91328000 	add	x0, x0, #0xca0
  401050:	97fffe04 	bl	400860 <printf@plt>
  401054:	3940bfa0 	ldrb	w0, [x29, #47]
  401058:	b9407fa1 	ldr	w1, [x29, #124]
  40105c:	4b000020 	sub	w0, w1, w0
  401060:	93407c00 	sxtw	x0, w0
  401064:	f9400ba1 	ldr	x1, [x29, #16]
  401068:	8b000020 	add	x0, x1, x0
  40106c:	b9807fa1 	ldrsw	x1, [x29, #124]
  401070:	910143a2 	add	x2, x29, #0x50
  401074:	38616841 	ldrb	w1, [x2, x1]
  401078:	39000001 	strb	w1, [x0]
  40107c:	b9407fa0 	ldr	w0, [x29, #124]
  401080:	11000400 	add	w0, w0, #0x1
  401084:	b9007fa0 	str	w0, [x29, #124]
  401088:	b9807fa1 	ldrsw	x1, [x29, #124]
  40108c:	3940bfa2 	ldrb	w2, [x29, #47]
  401090:	f9400fa0 	ldr	x0, [x29, #24]
  401094:	8b000040 	add	x0, x2, x0
  401098:	eb00003f 	cmp	x1, x0
  40109c:	54fffce3 	b.cc	401038 <readfrom_spi_serial+0x1a4>  // b.lo, b.ul, b.last
  4010a0:	52800000 	mov	w0, #0x0                   	// #0
  4010a4:	a8c87bfd 	ldp	x29, x30, [sp], #128
  4010a8:	d65f03c0 	ret

00000000004010ac <dwt_writetodevice>:
  4010ac:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  4010b0:	910003fd 	mov	x29, sp
  4010b4:	b9002fa0 	str	w0, [x29, #44]
  4010b8:	b9002ba1 	str	w1, [x29, #40]
  4010bc:	b90027a2 	str	w2, [x29, #36]
  4010c0:	f9000fa3 	str	x3, [x29, #24]
  4010c4:	b9003fbf 	str	wzr, [x29, #60]
  4010c8:	b9402ba0 	ldr	w0, [x29, #40]
  4010cc:	7100001f 	cmp	w0, #0x0
  4010d0:	54000181 	b.ne	401100 <dwt_writetodevice+0x54>  // b.any
  4010d4:	b9402fa0 	ldr	w0, [x29, #44]
  4010d8:	12001c01 	and	w1, w0, #0xff
  4010dc:	b9403fa0 	ldr	w0, [x29, #60]
  4010e0:	11000402 	add	w2, w0, #0x1
  4010e4:	b9003fa2 	str	w2, [x29, #60]
  4010e8:	32196021 	orr	w1, w1, #0xffffff80
  4010ec:	12001c22 	and	w2, w1, #0xff
  4010f0:	93407c00 	sxtw	x0, w0
  4010f4:	9100e3a1 	add	x1, x29, #0x38
  4010f8:	38206822 	strb	w2, [x1, x0]
  4010fc:	1400002a 	b	4011a4 <dwt_writetodevice+0xf8>
  401100:	b9402fa0 	ldr	w0, [x29, #44]
  401104:	12001c01 	and	w1, w0, #0xff
  401108:	b9403fa0 	ldr	w0, [x29, #60]
  40110c:	11000402 	add	w2, w0, #0x1
  401110:	b9003fa2 	str	w2, [x29, #60]
  401114:	321a6421 	orr	w1, w1, #0xffffffc0
  401118:	12001c22 	and	w2, w1, #0xff
  40111c:	93407c00 	sxtw	x0, w0
  401120:	9100e3a1 	add	x1, x29, #0x38
  401124:	38206822 	strb	w2, [x1, x0]
  401128:	b9402ba0 	ldr	w0, [x29, #40]
  40112c:	7101fc1f 	cmp	w0, #0x7f
  401130:	54000148 	b.hi	401158 <dwt_writetodevice+0xac>  // b.pmore
  401134:	b9403fa0 	ldr	w0, [x29, #60]
  401138:	11000401 	add	w1, w0, #0x1
  40113c:	b9003fa1 	str	w1, [x29, #60]
  401140:	b9402ba1 	ldr	w1, [x29, #40]
  401144:	12001c22 	and	w2, w1, #0xff
  401148:	93407c00 	sxtw	x0, w0
  40114c:	9100e3a1 	add	x1, x29, #0x38
  401150:	38206822 	strb	w2, [x1, x0]
  401154:	14000014 	b	4011a4 <dwt_writetodevice+0xf8>
  401158:	b9402ba0 	ldr	w0, [x29, #40]
  40115c:	12001c01 	and	w1, w0, #0xff
  401160:	b9403fa0 	ldr	w0, [x29, #60]
  401164:	11000402 	add	w2, w0, #0x1
  401168:	b9003fa2 	str	w2, [x29, #60]
  40116c:	32196021 	orr	w1, w1, #0xffffff80
  401170:	12001c22 	and	w2, w1, #0xff
  401174:	93407c00 	sxtw	x0, w0
  401178:	9100e3a1 	add	x1, x29, #0x38
  40117c:	38206822 	strb	w2, [x1, x0]
  401180:	b9402ba0 	ldr	w0, [x29, #40]
  401184:	53077c02 	lsr	w2, w0, #7
  401188:	b9403fa0 	ldr	w0, [x29, #60]
  40118c:	11000401 	add	w1, w0, #0x1
  401190:	b9003fa1 	str	w1, [x29, #60]
  401194:	12001c42 	and	w2, w2, #0xff
  401198:	93407c00 	sxtw	x0, w0
  40119c:	9100e3a1 	add	x1, x29, #0x38
  4011a0:	38206822 	strb	w2, [x1, x0]
  4011a4:	3940e3a0 	ldrb	w0, [x29, #56]
  4011a8:	2a0003e1 	mov	w1, w0
  4011ac:	3940e7a0 	ldrb	w0, [x29, #57]
  4011b0:	2a0003e2 	mov	w2, w0
  4011b4:	3940eba0 	ldrb	w0, [x29, #58]
  4011b8:	2a0003e3 	mov	w3, w0
  4011bc:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  4011c0:	9132c000 	add	x0, x0, #0xcb0
  4011c4:	2a0303e4 	mov	w4, w3
  4011c8:	2a0203e3 	mov	w3, w2
  4011cc:	2a0103e2 	mov	w2, w1
  4011d0:	b9403fa1 	ldr	w1, [x29, #60]
  4011d4:	97fffda3 	bl	400860 <printf@plt>
  4011d8:	b9403fa0 	ldr	w0, [x29, #60]
  4011dc:	12001c00 	and	w0, w0, #0xff
  4011e0:	9100e3a1 	add	x1, x29, #0x38
  4011e4:	f9400fa3 	ldr	x3, [x29, #24]
  4011e8:	b94027a2 	ldr	w2, [x29, #36]
  4011ec:	94000003 	bl	4011f8 <writetospi_serial>
  4011f0:	a8c47bfd 	ldp	x29, x30, [sp], #64
  4011f4:	d65f03c0 	ret

00000000004011f8 <writetospi_serial>:
  4011f8:	a9b87bfd 	stp	x29, x30, [sp, #-128]!
  4011fc:	910003fd 	mov	x29, sp
  401200:	3900bfa0 	strb	w0, [x29, #47]
  401204:	f90013a1 	str	x1, [x29, #32]
  401208:	b9002ba2 	str	w2, [x29, #40]
  40120c:	f9000fa3 	str	x3, [x29, #24]
  401210:	a9067fbf 	stp	xzr, xzr, [x29, #96]
  401214:	a9057fbf 	stp	xzr, xzr, [x29, #80]
  401218:	b90077bf 	str	wzr, [x29, #116]
  40121c:	b9007fbf 	str	wzr, [x29, #124]
  401220:	b9007bbf 	str	wzr, [x29, #120]
  401224:	910183a0 	add	x0, x29, #0x60
  401228:	2a0003e0 	mov	w0, w0
  40122c:	f9001ba0 	str	x0, [x29, #48]
  401230:	910143a0 	add	x0, x29, #0x50
  401234:	2a0003e0 	mov	w0, w0
  401238:	f9001fa0 	str	x0, [x29, #56]
  40123c:	3940bfa1 	ldrb	w1, [x29, #47]
  401240:	b9402ba0 	ldr	w0, [x29, #40]
  401244:	0b000020 	add	w0, w1, w0
  401248:	b90043a0 	str	w0, [x29, #64]
  40124c:	52942400 	mov	w0, #0xa120                	// #41248
  401250:	72a000e0 	movk	w0, #0x7, lsl #16
  401254:	b90047a0 	str	w0, [x29, #68]
  401258:	52800100 	mov	w0, #0x8                   	// #8
  40125c:	39012ba0 	strb	w0, [x29, #74]
  401260:	52800c80 	mov	w0, #0x64                  	// #100
  401264:	790093a0 	strh	w0, [x29, #72]
  401268:	3940bfa4 	ldrb	w4, [x29, #47]
  40126c:	3940bfa1 	ldrb	w1, [x29, #47]
  401270:	b9402ba0 	ldr	w0, [x29, #40]
  401274:	0b000021 	add	w1, w1, w0
  401278:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  40127c:	91334000 	add	x0, x0, #0xcd0
  401280:	2a0103e3 	mov	w3, w1
  401284:	b9402ba2 	ldr	w2, [x29, #40]
  401288:	2a0403e1 	mov	w1, w4
  40128c:	97fffd75 	bl	400860 <printf@plt>
  401290:	b9007bbf 	str	wzr, [x29, #120]
  401294:	1400000b 	b	4012c0 <writetospi_serial+0xc8>
  401298:	b9807ba0 	ldrsw	x0, [x29, #120]
  40129c:	f94013a1 	ldr	x1, [x29, #32]
  4012a0:	8b000020 	add	x0, x1, x0
  4012a4:	39400002 	ldrb	w2, [x0]
  4012a8:	b9807ba0 	ldrsw	x0, [x29, #120]
  4012ac:	910183a1 	add	x1, x29, #0x60
  4012b0:	38206822 	strb	w2, [x1, x0]
  4012b4:	b9407ba0 	ldr	w0, [x29, #120]
  4012b8:	11000400 	add	w0, w0, #0x1
  4012bc:	b9007ba0 	str	w0, [x29, #120]
  4012c0:	3940bfa0 	ldrb	w0, [x29, #47]
  4012c4:	b9407ba1 	ldr	w1, [x29, #120]
  4012c8:	6b00003f 	cmp	w1, w0
  4012cc:	54fffe6b 	b.lt	401298 <writetospi_serial+0xa0>  // b.tstop
  4012d0:	b9007fbf 	str	wzr, [x29, #124]
  4012d4:	1400000e 	b	40130c <writetospi_serial+0x114>
  4012d8:	b9807fa0 	ldrsw	x0, [x29, #124]
  4012dc:	f9400fa1 	ldr	x1, [x29, #24]
  4012e0:	8b000021 	add	x1, x1, x0
  4012e4:	b9407ba0 	ldr	w0, [x29, #120]
  4012e8:	11000402 	add	w2, w0, #0x1
  4012ec:	b9007ba2 	str	w2, [x29, #120]
  4012f0:	39400022 	ldrb	w2, [x1]
  4012f4:	93407c00 	sxtw	x0, w0
  4012f8:	910183a1 	add	x1, x29, #0x60
  4012fc:	38206822 	strb	w2, [x1, x0]
  401300:	b9407fa0 	ldr	w0, [x29, #124]
  401304:	11000400 	add	w0, w0, #0x1
  401308:	b9007fa0 	str	w0, [x29, #124]
  40130c:	b9407fa0 	ldr	w0, [x29, #124]
  401310:	b9402ba1 	ldr	w1, [x29, #40]
  401314:	6b00003f 	cmp	w1, w0
  401318:	54fffe08 	b.hi	4012d8 <writetospi_serial+0xe0>  // b.pmore
  40131c:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  401320:	9133a000 	add	x0, x0, #0xce8
  401324:	97fffd4f 	bl	400860 <printf@plt>
  401328:	b9007fbf 	str	wzr, [x29, #124]
  40132c:	1400000b 	b	401358 <writetospi_serial+0x160>
  401330:	b9807fa0 	ldrsw	x0, [x29, #124]
  401334:	910183a1 	add	x1, x29, #0x60
  401338:	38606820 	ldrb	w0, [x1, x0]
  40133c:	2a0003e1 	mov	w1, w0
  401340:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  401344:	91326000 	add	x0, x0, #0xc98
  401348:	97fffd46 	bl	400860 <printf@plt>
  40134c:	b9407fa0 	ldr	w0, [x29, #124]
  401350:	11000400 	add	w0, w0, #0x1
  401354:	b9007fa0 	str	w0, [x29, #124]
  401358:	b9407fa0 	ldr	w0, [x29, #124]
  40135c:	71003c1f 	cmp	w0, #0xf
  401360:	54fffe8d 	b.le	401330 <writetospi_serial+0x138>
  401364:	52800140 	mov	w0, #0xa                   	// #10
  401368:	97fffd42 	bl	400870 <putchar@plt>
  40136c:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  401370:	91020000 	add	x0, x0, #0x80
  401374:	b9400000 	ldr	w0, [x0]
  401378:	9100c3a1 	add	x1, x29, #0x30
  40137c:	aa0103e2 	mov	x2, x1
  401380:	d28d6001 	mov	x1, #0x6b00                	// #27392
  401384:	f2a80401 	movk	x1, #0x4020, lsl #16
  401388:	97fffd3e 	bl	400880 <ioctl@plt>
  40138c:	b90077a0 	str	w0, [x29, #116]
  401390:	b94077a0 	ldr	w0, [x29, #116]
  401394:	7100001f 	cmp	w0, #0x0
  401398:	5400008c 	b.gt	4013a8 <writetospi_serial+0x1b0>
  40139c:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  4013a0:	9131c000 	add	x0, x0, #0xc70
  4013a4:	97fffd7a 	bl	40098c <pabort>
  4013a8:	d503201f 	nop
  4013ac:	a8c87bfd 	ldp	x29, x30, [sp], #128
  4013b0:	d65f03c0 	ret

00000000004013b4 <read_test>:
  4013b4:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  4013b8:	910003fd 	mov	x29, sp
  4013bc:	f9000bbf 	str	xzr, [x29, #16]
  4013c0:	52800100 	mov	w0, #0x8                   	// #8
  4013c4:	39007ba0 	strb	w0, [x29, #30]
  4013c8:	39407ba0 	ldrb	w0, [x29, #30]
  4013cc:	910043a1 	add	x1, x29, #0x10
  4013d0:	aa0103e3 	mov	x3, x1
  4013d4:	aa0003e2 	mov	x2, x0
  4013d8:	52800001 	mov	w1, #0x0                   	// #0
  4013dc:	52800100 	mov	w0, #0x8                   	// #8
  4013e0:	97fffe5a 	bl	400d48 <dwt_readfromdevice>
  4013e4:	39007fbf 	strb	wzr, [x29, #31]
  4013e8:	1400000c 	b	401418 <read_test+0x64>
  4013ec:	39407fa0 	ldrb	w0, [x29, #31]
  4013f0:	93407c00 	sxtw	x0, w0
  4013f4:	910043a1 	add	x1, x29, #0x10
  4013f8:	38606820 	ldrb	w0, [x1, x0]
  4013fc:	2a0003e1 	mov	w1, w0
  401400:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  401404:	9133e000 	add	x0, x0, #0xcf8
  401408:	97fffd16 	bl	400860 <printf@plt>
  40140c:	39407fa0 	ldrb	w0, [x29, #31]
  401410:	11000400 	add	w0, w0, #0x1
  401414:	39007fa0 	strb	w0, [x29, #31]
  401418:	39407fa1 	ldrb	w1, [x29, #31]
  40141c:	39407ba0 	ldrb	w0, [x29, #30]
  401420:	6b00003f 	cmp	w1, w0
  401424:	54fffe43 	b.cc	4013ec <read_test+0x38>  // b.lo, b.ul, b.last
  401428:	d503201f 	nop
  40142c:	a8c27bfd 	ldp	x29, x30, [sp], #32
  401430:	d65f03c0 	ret

0000000000401434 <write_test>:
  401434:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  401438:	910003fd 	mov	x29, sp
  40143c:	b9001bbf 	str	wzr, [x29, #24]
  401440:	f9000bbf 	str	xzr, [x29, #16]
  401444:	528000e0 	mov	w0, #0x7                   	// #7
  401448:	390067a0 	strb	w0, [x29, #25]
  40144c:	12800aa0 	mov	w0, #0xffffffaa            	// #-86
  401450:	390063a0 	strb	w0, [x29, #24]
  401454:	910063a0 	add	x0, x29, #0x18
  401458:	aa0003e3 	mov	x3, x0
  40145c:	52800042 	mov	w2, #0x2                   	// #2
  401460:	52800081 	mov	w1, #0x4                   	// #4
  401464:	528005a0 	mov	w0, #0x2d                  	// #45
  401468:	97ffff11 	bl	4010ac <dwt_writetodevice>
  40146c:	52800080 	mov	w0, #0x4                   	// #4
  401470:	39007ba0 	strb	w0, [x29, #30]
  401474:	39407ba0 	ldrb	w0, [x29, #30]
  401478:	910043a1 	add	x1, x29, #0x10
  40147c:	aa0103e3 	mov	x3, x1
  401480:	aa0003e2 	mov	x2, x0
  401484:	52800081 	mov	w1, #0x4                   	// #4
  401488:	528005a0 	mov	w0, #0x2d                  	// #45
  40148c:	97fffe2f 	bl	400d48 <dwt_readfromdevice>
  401490:	39007fbf 	strb	wzr, [x29, #31]
  401494:	1400000c 	b	4014c4 <write_test+0x90>
  401498:	39407fa0 	ldrb	w0, [x29, #31]
  40149c:	93407c00 	sxtw	x0, w0
  4014a0:	910043a1 	add	x1, x29, #0x10
  4014a4:	38606820 	ldrb	w0, [x1, x0]
  4014a8:	2a0003e1 	mov	w1, w0
  4014ac:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  4014b0:	9133e000 	add	x0, x0, #0xcf8
  4014b4:	97fffceb 	bl	400860 <printf@plt>
  4014b8:	39407fa0 	ldrb	w0, [x29, #31]
  4014bc:	11000400 	add	w0, w0, #0x1
  4014c0:	39007fa0 	strb	w0, [x29, #31]
  4014c4:	39407fa1 	ldrb	w1, [x29, #31]
  4014c8:	39407ba0 	ldrb	w0, [x29, #30]
  4014cc:	6b00003f 	cmp	w1, w0
  4014d0:	54fffe43 	b.cc	401498 <write_test+0x64>  // b.lo, b.ul, b.last
  4014d4:	52800220 	mov	w0, #0x11                  	// #17
  4014d8:	39006fa0 	strb	w0, [x29, #27]
  4014dc:	52800440 	mov	w0, #0x22                  	// #34
  4014e0:	39006ba0 	strb	w0, [x29, #26]
  4014e4:	52800660 	mov	w0, #0x33                  	// #51
  4014e8:	390067a0 	strb	w0, [x29, #25]
  4014ec:	52800880 	mov	w0, #0x44                  	// #68
  4014f0:	390063a0 	strb	w0, [x29, #24]
  4014f4:	910063a0 	add	x0, x29, #0x18
  4014f8:	aa0003e3 	mov	x3, x0
  4014fc:	52800082 	mov	w2, #0x4                   	// #4
  401500:	52800001 	mov	w1, #0x0                   	// #0
  401504:	528005a0 	mov	w0, #0x2d                  	// #45
  401508:	97fffee9 	bl	4010ac <dwt_writetodevice>
  40150c:	52800080 	mov	w0, #0x4                   	// #4
  401510:	39007ba0 	strb	w0, [x29, #30]
  401514:	39407ba0 	ldrb	w0, [x29, #30]
  401518:	910043a1 	add	x1, x29, #0x10
  40151c:	aa0103e3 	mov	x3, x1
  401520:	aa0003e2 	mov	x2, x0
  401524:	52800001 	mov	w1, #0x0                   	// #0
  401528:	528005a0 	mov	w0, #0x2d                  	// #45
  40152c:	97fffe07 	bl	400d48 <dwt_readfromdevice>
  401530:	39007fbf 	strb	wzr, [x29, #31]
  401534:	1400000c 	b	401564 <write_test+0x130>
  401538:	39407fa0 	ldrb	w0, [x29, #31]
  40153c:	93407c00 	sxtw	x0, w0
  401540:	910043a1 	add	x1, x29, #0x10
  401544:	38606820 	ldrb	w0, [x1, x0]
  401548:	2a0003e1 	mov	w1, w0
  40154c:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  401550:	9133e000 	add	x0, x0, #0xcf8
  401554:	97fffcc3 	bl	400860 <printf@plt>
  401558:	39407fa0 	ldrb	w0, [x29, #31]
  40155c:	11000400 	add	w0, w0, #0x1
  401560:	39007fa0 	strb	w0, [x29, #31]
  401564:	39407fa1 	ldrb	w1, [x29, #31]
  401568:	39407ba0 	ldrb	w0, [x29, #30]
  40156c:	6b00003f 	cmp	w1, w0
  401570:	54fffe43 	b.cc	401538 <write_test+0x104>  // b.lo, b.ul, b.last
  401574:	d503201f 	nop
  401578:	a8c27bfd 	ldp	x29, x30, [sp], #32
  40157c:	d65f03c0 	ret

0000000000401580 <dwt_read32bitoffsetreg>:
  401580:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  401584:	910003fd 	mov	x29, sp
  401588:	b9001fa0 	str	w0, [x29, #28]
  40158c:	b9001ba1 	str	w1, [x29, #24]
  401590:	92800000 	mov	x0, #0xffffffffffffffff    	// #-1
  401594:	f9001fa0 	str	x0, [x29, #56]
  401598:	b9002bbf 	str	wzr, [x29, #40]
  40159c:	b9401fa0 	ldr	w0, [x29, #28]
  4015a0:	12001c00 	and	w0, w0, #0xff
  4015a4:	b9401ba1 	ldr	w1, [x29, #24]
  4015a8:	12001c21 	and	w1, w1, #0xff
  4015ac:	9100a3a2 	add	x2, x29, #0x28
  4015b0:	aa0203e3 	mov	x3, x2
  4015b4:	d2800082 	mov	x2, #0x4                   	// #4
  4015b8:	97fffde4 	bl	400d48 <dwt_readfromdevice>
  4015bc:	b90033a0 	str	w0, [x29, #48]
  4015c0:	b94033a0 	ldr	w0, [x29, #48]
  4015c4:	7100001f 	cmp	w0, #0x0
  4015c8:	54000241 	b.ne	401610 <dwt_read32bitoffsetreg+0x90>  // b.any
  4015cc:	52800060 	mov	w0, #0x3                   	// #3
  4015d0:	b90037a0 	str	w0, [x29, #52]
  4015d4:	1400000c 	b	401604 <dwt_read32bitoffsetreg+0x84>
  4015d8:	f9401fa0 	ldr	x0, [x29, #56]
  4015dc:	d378dc01 	lsl	x1, x0, #8
  4015e0:	b98037a0 	ldrsw	x0, [x29, #52]
  4015e4:	9100a3a2 	add	x2, x29, #0x28
  4015e8:	38606840 	ldrb	w0, [x2, x0]
  4015ec:	92401c00 	and	x0, x0, #0xff
  4015f0:	8b000020 	add	x0, x1, x0
  4015f4:	f9001fa0 	str	x0, [x29, #56]
  4015f8:	b94037a0 	ldr	w0, [x29, #52]
  4015fc:	51000400 	sub	w0, w0, #0x1
  401600:	b90037a0 	str	w0, [x29, #52]
  401604:	b94037a0 	ldr	w0, [x29, #52]
  401608:	7100001f 	cmp	w0, #0x0
  40160c:	54fffe6a 	b.ge	4015d8 <dwt_read32bitoffsetreg+0x58>  // b.tcont
  401610:	f9401fa0 	ldr	x0, [x29, #56]
  401614:	a8c47bfd 	ldp	x29, x30, [sp], #64
  401618:	d65f03c0 	ret

000000000040161c <instancereaddeviceid>:
  40161c:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  401620:	910003fd 	mov	x29, sp
  401624:	94000003 	bl	401630 <dwt_readdevid>
  401628:	a8c17bfd 	ldp	x29, x30, [sp], #16
  40162c:	d65f03c0 	ret

0000000000401630 <dwt_readdevid>:
  401630:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  401634:	910003fd 	mov	x29, sp
  401638:	52800001 	mov	w1, #0x0                   	// #0
  40163c:	52800000 	mov	w0, #0x0                   	// #0
  401640:	97ffffd0 	bl	401580 <dwt_read32bitoffsetreg>
  401644:	a8c17bfd 	ldp	x29, x30, [sp], #16
  401648:	d65f03c0 	ret

000000000040164c <id>:
  40164c:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  401650:	910003fd 	mov	x29, sp
  401654:	97fffff2 	bl	40161c <instancereaddeviceid>
  401658:	f9000fa0 	str	x0, [x29, #24]
  40165c:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  401660:	91344000 	add	x0, x0, #0xd10
  401664:	f9400fa1 	ldr	x1, [x29, #24]
  401668:	97fffc7e 	bl	400860 <printf@plt>
  40166c:	d503201f 	nop
  401670:	a8c27bfd 	ldp	x29, x30, [sp], #32
  401674:	d65f03c0 	ret

0000000000401678 <spi_init_test>:
  401678:	a9bd7bfd 	stp	x29, x30, [sp, #-48]!
  40167c:	910003fd 	mov	x29, sp
  401680:	b9001fa0 	str	w0, [x29, #28]
  401684:	f9000ba1 	str	x1, [x29, #16]
  401688:	b9002fbf 	str	wzr, [x29, #44]
  40168c:	f9400ba1 	ldr	x1, [x29, #16]
  401690:	b9401fa0 	ldr	w0, [x29, #28]
  401694:	97fffd05 	bl	400aa8 <parse_opts>
  401698:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  40169c:	91022000 	add	x0, x0, #0x88
  4016a0:	f9400000 	ldr	x0, [x0]
  4016a4:	52800041 	mov	w1, #0x2                   	// #2
  4016a8:	97fffc4e 	bl	4007e0 <open@plt>
  4016ac:	2a0003e1 	mov	w1, w0
  4016b0:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  4016b4:	91020000 	add	x0, x0, #0x80
  4016b8:	b9000001 	str	w1, [x0]
  4016bc:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  4016c0:	91020000 	add	x0, x0, #0x80
  4016c4:	b9400000 	ldr	w0, [x0]
  4016c8:	7100001f 	cmp	w0, #0x0
  4016cc:	5400008a 	b.ge	4016dc <spi_init_test+0x64>  // b.tcont
  4016d0:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  4016d4:	91348000 	add	x0, x0, #0xd20
  4016d8:	97fffcad 	bl	40098c <pabort>
  4016dc:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  4016e0:	91022000 	add	x0, x0, #0x88
  4016e4:	f9400001 	ldr	x1, [x0]
  4016e8:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  4016ec:	9134e000 	add	x0, x0, #0xd38
  4016f0:	97fffc5c 	bl	400860 <printf@plt>
  4016f4:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  4016f8:	91020000 	add	x0, x0, #0x80
  4016fc:	b9400003 	ldr	w3, [x0]
  401700:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  401704:	91028800 	add	x0, x0, #0xa2
  401708:	aa0003e2 	mov	x2, x0
  40170c:	d28d6021 	mov	x1, #0x6b01                	// #27393
  401710:	f2a80021 	movk	x1, #0x4001, lsl #16
  401714:	2a0303e0 	mov	w0, w3
  401718:	97fffc5a 	bl	400880 <ioctl@plt>
  40171c:	b9002fa0 	str	w0, [x29, #44]
  401720:	b9402fa0 	ldr	w0, [x29, #44]
  401724:	3100041f 	cmn	w0, #0x1
  401728:	54000081 	b.ne	401738 <spi_init_test+0xc0>  // b.any
  40172c:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  401730:	91356000 	add	x0, x0, #0xd58
  401734:	97fffc96 	bl	40098c <pabort>
  401738:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  40173c:	91020000 	add	x0, x0, #0x80
  401740:	b9400003 	ldr	w3, [x0]
  401744:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  401748:	91028800 	add	x0, x0, #0xa2
  40174c:	aa0003e2 	mov	x2, x0
  401750:	d28d6021 	mov	x1, #0x6b01                	// #27393
  401754:	f2b00021 	movk	x1, #0x8001, lsl #16
  401758:	2a0303e0 	mov	w0, w3
  40175c:	97fffc49 	bl	400880 <ioctl@plt>
  401760:	b9002fa0 	str	w0, [x29, #44]
  401764:	b9402fa0 	ldr	w0, [x29, #44]
  401768:	3100041f 	cmn	w0, #0x1
  40176c:	54000081 	b.ne	40177c <spi_init_test+0x104>  // b.any
  401770:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  401774:	9135c000 	add	x0, x0, #0xd70
  401778:	97fffc85 	bl	40098c <pabort>
  40177c:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  401780:	91020000 	add	x0, x0, #0x80
  401784:	b9400003 	ldr	w3, [x0]
  401788:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  40178c:	91024000 	add	x0, x0, #0x90
  401790:	aa0003e2 	mov	x2, x0
  401794:	d28d6061 	mov	x1, #0x6b03                	// #27395
  401798:	f2a80021 	movk	x1, #0x4001, lsl #16
  40179c:	2a0303e0 	mov	w0, w3
  4017a0:	97fffc38 	bl	400880 <ioctl@plt>
  4017a4:	b9002fa0 	str	w0, [x29, #44]
  4017a8:	b9402fa0 	ldr	w0, [x29, #44]
  4017ac:	3100041f 	cmn	w0, #0x1
  4017b0:	54000081 	b.ne	4017c0 <spi_init_test+0x148>  // b.any
  4017b4:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  4017b8:	91362000 	add	x0, x0, #0xd88
  4017bc:	97fffc74 	bl	40098c <pabort>
  4017c0:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  4017c4:	91020000 	add	x0, x0, #0x80
  4017c8:	b9400003 	ldr	w3, [x0]
  4017cc:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  4017d0:	91024000 	add	x0, x0, #0x90
  4017d4:	aa0003e2 	mov	x2, x0
  4017d8:	d28d6061 	mov	x1, #0x6b03                	// #27395
  4017dc:	f2b00021 	movk	x1, #0x8001, lsl #16
  4017e0:	2a0303e0 	mov	w0, w3
  4017e4:	97fffc27 	bl	400880 <ioctl@plt>
  4017e8:	b9002fa0 	str	w0, [x29, #44]
  4017ec:	b9402fa0 	ldr	w0, [x29, #44]
  4017f0:	3100041f 	cmn	w0, #0x1
  4017f4:	54000081 	b.ne	401804 <spi_init_test+0x18c>  // b.any
  4017f8:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  4017fc:	91368000 	add	x0, x0, #0xda0
  401800:	97fffc63 	bl	40098c <pabort>
  401804:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  401808:	91020000 	add	x0, x0, #0x80
  40180c:	b9400003 	ldr	w3, [x0]
  401810:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  401814:	91025000 	add	x0, x0, #0x94
  401818:	aa0003e2 	mov	x2, x0
  40181c:	d28d6081 	mov	x1, #0x6b04                	// #27396
  401820:	f2a80081 	movk	x1, #0x4004, lsl #16
  401824:	2a0303e0 	mov	w0, w3
  401828:	97fffc16 	bl	400880 <ioctl@plt>
  40182c:	b9002fa0 	str	w0, [x29, #44]
  401830:	b9402fa0 	ldr	w0, [x29, #44]
  401834:	3100041f 	cmn	w0, #0x1
  401838:	54000081 	b.ne	401848 <spi_init_test+0x1d0>  // b.any
  40183c:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  401840:	9136e000 	add	x0, x0, #0xdb8
  401844:	97fffc52 	bl	40098c <pabort>
  401848:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  40184c:	91020000 	add	x0, x0, #0x80
  401850:	b9400003 	ldr	w3, [x0]
  401854:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  401858:	91025000 	add	x0, x0, #0x94
  40185c:	aa0003e2 	mov	x2, x0
  401860:	d28d6081 	mov	x1, #0x6b04                	// #27396
  401864:	f2b00081 	movk	x1, #0x8004, lsl #16
  401868:	2a0303e0 	mov	w0, w3
  40186c:	97fffc05 	bl	400880 <ioctl@plt>
  401870:	b9002fa0 	str	w0, [x29, #44]
  401874:	b9402fa0 	ldr	w0, [x29, #44]
  401878:	3100041f 	cmn	w0, #0x1
  40187c:	54000081 	b.ne	40188c <spi_init_test+0x214>  // b.any
  401880:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  401884:	91374000 	add	x0, x0, #0xdd0
  401888:	97fffc41 	bl	40098c <pabort>
  40188c:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  401890:	91028800 	add	x0, x0, #0xa2
  401894:	39400000 	ldrb	w0, [x0]
  401898:	2a0003e1 	mov	w1, w0
  40189c:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  4018a0:	9137a000 	add	x0, x0, #0xde8
  4018a4:	97fffbef 	bl	400860 <printf@plt>
  4018a8:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  4018ac:	91024000 	add	x0, x0, #0x90
  4018b0:	39400000 	ldrb	w0, [x0]
  4018b4:	2a0003e1 	mov	w1, w0
  4018b8:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  4018bc:	9137e000 	add	x0, x0, #0xdf8
  4018c0:	97fffbe8 	bl	400860 <printf@plt>
  4018c4:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  4018c8:	91025000 	add	x0, x0, #0x94
  4018cc:	b9400003 	ldr	w3, [x0]
  4018d0:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  4018d4:	91025000 	add	x0, x0, #0x94
  4018d8:	b9400001 	ldr	w1, [x0]
  4018dc:	5289ba60 	mov	w0, #0x4dd3                	// #19923
  4018e0:	72a20c40 	movk	w0, #0x1062, lsl #16
  4018e4:	9ba07c20 	umull	x0, w1, w0
  4018e8:	d360fc00 	lsr	x0, x0, #32
  4018ec:	53067c01 	lsr	w1, w0, #6
  4018f0:	90000000 	adrp	x0, 401000 <readfrom_spi_serial+0x16c>
  4018f4:	91384000 	add	x0, x0, #0xe10
  4018f8:	2a0103e2 	mov	w2, w1
  4018fc:	2a0303e1 	mov	w1, w3
  401900:	97fffbd8 	bl	400860 <printf@plt>
  401904:	d503201f 	nop
  401908:	a8c37bfd 	ldp	x29, x30, [sp], #48
  40190c:	d65f03c0 	ret

0000000000401910 <main>:
  401910:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  401914:	910003fd 	mov	x29, sp
  401918:	b9001fa0 	str	w0, [x29, #28]
  40191c:	f9000ba1 	str	x1, [x29, #16]
  401920:	f9400ba1 	ldr	x1, [x29, #16]
  401924:	b9401fa0 	ldr	w0, [x29, #28]
  401928:	97ffff54 	bl	401678 <spi_init_test>
  40192c:	97fffea2 	bl	4013b4 <read_test>
  401930:	97fffec1 	bl	401434 <write_test>
  401934:	97ffff46 	bl	40164c <id>
  401938:	d0000080 	adrp	x0, 413000 <exit@GLIBC_2.17>
  40193c:	91020000 	add	x0, x0, #0x80
  401940:	b9400000 	ldr	w0, [x0]
  401944:	97fffbaf 	bl	400800 <close@plt>
  401948:	52800000 	mov	w0, #0x0                   	// #0
  40194c:	a8c27bfd 	ldp	x29, x30, [sp], #32
  401950:	d65f03c0 	ret
  401954:	00000000 	.inst	0x00000000 ; undefined

0000000000401958 <__libc_csu_init>:
  401958:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  40195c:	910003fd 	mov	x29, sp
  401960:	a901d7f4 	stp	x20, x21, [sp, #24]
  401964:	b0000094 	adrp	x20, 412000 <__FRAME_END__+0xffd0>
  401968:	b0000095 	adrp	x21, 412000 <__FRAME_END__+0xffd0>
  40196c:	91374294 	add	x20, x20, #0xdd0
  401970:	913722b5 	add	x21, x21, #0xdc8
  401974:	a902dff6 	stp	x22, x23, [sp, #40]
  401978:	cb150294 	sub	x20, x20, x21
  40197c:	f9001ff8 	str	x24, [sp, #56]
  401980:	2a0003f6 	mov	w22, w0
  401984:	aa0103f7 	mov	x23, x1
  401988:	9343fe94 	asr	x20, x20, #3
  40198c:	aa0203f8 	mov	x24, x2
  401990:	97fffb7a 	bl	400778 <_init>
  401994:	b4000194 	cbz	x20, 4019c4 <__libc_csu_init+0x6c>
  401998:	f9000bb3 	str	x19, [x29, #16]
  40199c:	d2800013 	mov	x19, #0x0                   	// #0
  4019a0:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  4019a4:	aa1803e2 	mov	x2, x24
  4019a8:	aa1703e1 	mov	x1, x23
  4019ac:	2a1603e0 	mov	w0, w22
  4019b0:	91000673 	add	x19, x19, #0x1
  4019b4:	d63f0060 	blr	x3
  4019b8:	eb13029f 	cmp	x20, x19
  4019bc:	54ffff21 	b.ne	4019a0 <__libc_csu_init+0x48>  // b.any
  4019c0:	f9400bb3 	ldr	x19, [x29, #16]
  4019c4:	a941d7f4 	ldp	x20, x21, [sp, #24]
  4019c8:	a942dff6 	ldp	x22, x23, [sp, #40]
  4019cc:	f9401ff8 	ldr	x24, [sp, #56]
  4019d0:	a8c47bfd 	ldp	x29, x30, [sp], #64
  4019d4:	d65f03c0 	ret

00000000004019d8 <__libc_csu_fini>:
  4019d8:	d65f03c0 	ret

Disassembly of section .fini:

00000000004019dc <_fini>:
  4019dc:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4019e0:	910003fd 	mov	x29, sp
  4019e4:	a8c17bfd 	ldp	x29, x30, [sp], #16
  4019e8:	d65f03c0 	ret
